<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Example showing how to use TjsPDF">
    <meta name="author" content="silvioprog">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js" integrity="sha512-ToRWKKOvhBSS8EtqSflysM/S7v9bB9V0X3B1+E7xo7XZBEZCPL3VX5SFIp8zxY19r7Sz0svqQVbAOx+QcLQSAQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="js/basic.js"></script>
    <title>TjsPDF example</title>
    <style>
      .title {
        margin: 20px 0 30px 0
      }
    </style>
  </head>
  <body>
    <div class="container">
      <h3 class="title">
        TjsPDF <small class="text-muted">Create PDFs using Pas2JS & jsPDF</small>
      </h3>
      <div class="row">
        <div class="col-3-">
          <select class="form-control btn-block" id="edSelExample" autofocus>
            <option selected disabled>-- Select an example --</option>
            <option value="hello">Hello world</option>
            <option value="font">Font faces, text alignment and rotation</option>
            <option value="two_page">Two page Hello World</option>
            <option value="circles">Circles</option>
            <option value="lines">Lines</option>
            <option value="rectangles">Rectangles</option>
            <option value="triangles">Triangles</option>
            <option value="image">Add Image</option>
          </select>
          <button type="button" class="btn btn-primary btn-lg btn-block" id="btDownload" disabled>Download</button>
        </div>
        <div class="col-8">
          <div class="shadow-sm p-1 bg-white rounded" style="height: 500px;">
            <embed width="100%" height="100%" type="application/pdf" id="ebPreview">
          </div>
        </div>
      </div>
      <div class="row">
    <div class="source">
      <div class="source-inner">
        <div>
          Created using &nbsp; <a target="_blank" href="https://wiki.freepascal.org/pas2js">pas2js.</a> &nbsp;&nbsp;Sources: &nbsp; <a target="new" href="basic.lpr">Program
          sources</a>.
        </div>
      </div>
    </div>
      </div>
    </div>
    <script>
      rtl.run();
    </script>
  </body>
</html>
